<div class="port">
  <div class="port-container" [ngStyle]="{'width.px':50*device.col,'height.px':50*device.row}">
      <div *ngFor="let port of device.ports" [ngStyle]="{'top.px':port.r*50,'left.px':port.c*50}"></div>
  </div>
</div>
